from django.urls import path
from apps.forum.views import uploadImg, gettype,postarticle,contentadd,getallcontent,readnumadd,getAllauthor,getTypecontent

urlpatterns = [
    #判断用户名是否重复
    path('imgUpload/', uploadImg.as_view()),
    path('forumtype/',gettype.as_view()),
    path('forum/add/',postarticle.as_view()),
    path('forum/article/<article_id>', contentadd.as_view()),
    path('forum/getarticle/',getallcontent.as_view()),
    path('forum/getauthor/', getAllauthor.as_view()),
    path('forum/read/',readnumadd.as_view()),
    path('forum/gettypearticle/', getTypecontent.as_view()),
]